xl: tell the user about non-existent domains
authorStefano Stabellini <sstabellini@xensource.com>
Mon, 9 Aug 2010 16:07:50 +0000 (17:07 +0100)
committerStefano Stabellini <sstabellini@xensource.com>
Mon, 9 Aug 2010 16:07:50 +0000 (17:07 +0100)
commit8b3be172a3f225539a807711318c23001e84f359
treebd42235a8d9d52a68bf8704d52c1d17053353960
parent4d52a08194c3ec7c0e8693af8dc1f11aa799fd69
xl: tell the user about non-existent domains

The error message when one wants to list a non-existent domain is at
best misleading (libxl_domain_info failed (code -5)).
This patch catches this specific error and tells the user that the
requested domain does not exist:
Error: Domain '42' does not exist.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/xl_cmdimpl.c